
var list = [
    {
        name: "校区管理",
        fold: false,
        all: false,
        list: [
            { name: "首页", key: "summary", top: 127 },
            { name: "校区账号", key: "account", top: 13 },
            
        ],
    },
    {
            name: "教务管理",
            fold: false,
            all: false,
            list: [
                { name: "学员管理", key: "studentManagement", top: 11 },
                { name: "学情管理", key: "xueQingManagement", top: 75 },
                { name:"续费管理", key:"renewals", top:15},
                { name:"课程预警", key:"renewalWarning", top:15},

                // { name:"班级管理",key:"classManage",top:11},
                // 新增
                // {name:"查看校区班级",key:"checkClass",top:11},
            ],
    },
    {
        name: "课程设置",
        fold: false,
        all: false,
        list: [
            // new
            {name:"课销管理",key:'sellManage',top:107},
            { name: "课程类目", key: "courseType", top: 15 },
            { name: "课程明细", key: "course", top: 15 },
        ],
    },
    {
        // 新增1
        name:"餐食管理",
        fold: false,
        all: false,
        list:[
           
            {name:"报餐管理",key:"mealmanagement",top: 123}, //新增子字段
            {name:"餐费管理",key:"expensemanagement",top:95},//新增子字段
            { name: "食谱管理", key: "cookbook", top: 79 },
        ]
    },
    {
        name: "招生管理",
        fold: false,
        all: false,
        list: [
            // 新增
            {name:"招生分析",key:"enrollmentAnalysis",top:127},
            { name: "数据类型", key: "dataType", top: 79 },
            // { name: "数据分配", key: "dataAllot", top: 15 }, 
            { name: "跟进提醒", key: "schedule", top: 79 }, //new
            { name: "招生信息", key: "admissionInformation", top: 3 },
            //新增字段
            {name:"公共资源",key:"publicresource",top:15},
            //新增字段
            {name:"回收资源",key:"recycle",top:15}

        ],
    },
    {
        name: "管理分析",
        fold: false,
        all: false,
        list: [
            // { name: "数据类型管理", key: "dataType", top: 79 },
            { name: "数据分析", key: "recruitStudent", top: 127 },
            { name: "学员分析", key: "studentData", top: 127 },
            { name: "课程分析", key: "courseData", top: 127 },
            // new
            { name: "续费分析", key: "renewData", top: 127 },
            { name: "校区分析", key: "schoolData", top: 127 },
            // 新增字段
            {name:"报餐分析", key:"mealanalysis",top:127}
        ],
    },
    {
        name: "审核管理",
        fold: false,
        all: false,
        list: [
            { name: "请假审核", key: "qingJiaShenPi", top: 10 },
            { name: "停课审核", key: "tingKeShenPi", top: 10 },
            { name: "订单审核", key: "shouDongDuiZhang", top: 74 },
            { name: "退款审核", key: "tuiKuanShenPi", top: 10 },
        ],
    },
    {
        name: "人力资源",
        fold: false,
        all: false,
        list: [
            { name: "权限组", key: "authorityManagement", top: 15 },
            // { name: "账号管理", key: "accountManagement", top: 15 },
            // new
            { name: "校区分组", key: "authorityManagement1", top: 15 }, //原同权限组key
            // accountManagement
            { name: "员工管理", key: "memberManage", top: 15 }, 
            {name:"绩效规则",key:"jixiaoGuiZe",top:11},
            { name: "绩效统计", key: "jiXiaoTongJi", top: 11 },
        ],
    },
    

    {
        name: "财务管理",
        fold: false,
        all: false,
        list: [
            { name: "订单管理", key: "order", top: 107 },
            // { name: "退款管理", key: "refundManagement", top: 127 },
            // { name: "退款记录", key: "refundRecord", top: 127 },
            // { name: "绩效提成设置", key: "jiXiaoTiCheng", top : 11 },
            
            // { name: "校区提成管理", key: "xiaoQuTiCheng", top: 11 },
        ],
    },
    
    {
        name:"公众号",
        fold: false,
        all: false,
        list: [
            { name: '公众号', key: 'platform', top: 15 },
        ],
       
    },
   
    
];
//top表示控制复选框的的显示

list.forEach(function (it) {
    it.list.forEach(function (it1) {
        it1.allows = [false, false, false, false, false, false, false, false];
    });
});

function and(a, b) {
    var c = [0, 0, 0, 0, 0, 0, 0, 0];
    for (var i = 0; i < 8; i++) c[i] = a[i] && b[i];
    return c;
}
